package com.tuananh.radnom.model.netpoller;

import java.util.ArrayList;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import com.tuananh.radnom.model.AbstractConfiguration;
import com.tuananh.radnom.model.DirectoryConfig;
import com.tuananh.radnom.model.netservice.NetServiceConfiguration;

@XmlRootElement(name="polling-conf")
public class PollingConfiguration extends AbstractConfiguration {

	public static String path = DirectoryConfig.configPaths
			.get(PollingConfiguration.class.getName());
	{
		configPath = path;
	}
	
	ArrayList<PollPackage> pollPackage;
	
	@XmlElement(name="poll-package")
	public ArrayList<PollPackage> getPollPackage() {
		if (pollPackage==null) pollPackage = new ArrayList<PollPackage>();
		return pollPackage;
	}

	public void setPollPackage(ArrayList<PollPackage> pollPackage) {
		this.pollPackage = pollPackage;
	}

	@Override
	public AbstractConfiguration clone() {
		// TODO Auto-generated method stub
		return null;
	}
}
